package com.mall.huohuo.datasource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@TableName(value = "tbl_member_address")
@Accessors(chain = true)
public class TblMemberAddress {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 接受人姓名
     */
    @TableField(value = "receive_name")
    private String receiveName;

    /**
     * 接收人电话
     */
    @TableField(value = "receive_mobile")
    private String receiveMobile;

    /**
     * 省份
     */
    @TableField(value = "province")
    private String province;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区域
     */
    @TableField(value = "area")
    private String area;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 是否是默认地址
     */
    @TableField(value = "is_default")
    private Boolean isDefault;

    /**
     * 是否删除 0未删除 1 已删除
     */
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 用户id
     */
    @TableField(value = "member_id")
    private Long memberId;

    public static final String COL_ID = "id";

    public static final String COL_RECEIVE_NAME = "receive_name";

    public static final String COL_RECEIVE_MOBILE = "receive_mobile";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_AREA = "area";

    public static final String COL_ADDRESS = "address";

    public static final String COL_IS_DEFAULT = "is_default";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_MEMBER_ID = "member_id";
}
